package com.link_with_health.model;

import java.sql.Timestamp;

public class WaitingQueueEntity {
    private Long queueId;
    private Long doctorId;
    private String patientQueue;
    private Integer maxQueue;
    private Integer maxAppointment;
    private Timestamp createTime;
    private Timestamp updateTime;
    private Boolean isOpen;

    //补充
    private String patientName;
    private String doctorName;

    public WaitingQueueEntity() {
    }

    public WaitingQueueEntity(Long queueId, Long doctorId
            , String patientQueue, Integer maxQueue
            , Integer maxAppointment, Timestamp createTime
            , Timestamp updateTime) {
        this.queueId = queueId;
        this.doctorId = doctorId;
        this.patientQueue = patientQueue;
        this.maxQueue = maxQueue;
        this.maxAppointment = maxAppointment;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isOpen = isOpen;
    }

    public Long getQueueId() {
        return queueId;
    }

    public void setQueueId(Long queueId) {
        this.queueId = queueId;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getPatientQueue() {
        return patientQueue;
    }

    public void setPatientQueue(String patientQueue) {
        this.patientQueue = patientQueue;
    }

    public Integer getMaxQueue() {
        return maxQueue;
    }

    public void setMaxQueue(Integer maxQueue) {
        this.maxQueue = maxQueue;
    }

    public Integer getMaxAppointment() {
        return maxAppointment;
    }

    public Boolean getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Boolean open) {
        isOpen = open;
    }

    public void setMaxAppointment(Integer maxAppointment) {
        this.maxAppointment = maxAppointment;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    ///
    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    @Override
    public String toString() {
        return "WaitingQueueEntity{" +
                "queueId=" + queueId +
                ", doctorId=" + doctorId +
                ", patientQueue='" + patientQueue + '\'' +
                ", maxQueue=" + maxQueue +
                ", maxAppointment=" + maxAppointment +
                ", isOpen="+ isOpen+
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
